<template>
  <svg aria-hidden="true">
    <use :xlink:href="symbolId" :name="name" :fill="color" :class="fillClass" />
  </svg>
</template>

<script setup>
import { defineProps, computed } from 'vue'
const props = defineProps({
  name: {
    type: String,
    require: true
  },
  prefix: {
    type: String,
    default: 'icon'
  },
  color: {
    type: String
  },
  fillClass: {
    type: String
  }
})
const symbolId = computed(() => `#${props.prefix}-${props.name}`)
</script>

<style lang="scss" scoped></style>
